/*
 * EnrollPushProcess.java
 * business
 *
 * Created by chentao on 2017/4/25.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.push.process;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.yidiandao.business.constant.Intents;
import com.yidiandao.business.data.bean.Message;
import com.yidiandao.business.data.push.AbsPushProcess;
import com.yidiandao.business.ui.orderabout.activeorder.detail.ActiveOrderDetailActivity;

/**
 * 发现-个人活动报名情况推送
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/4/25 0025 11:07
 */
public class ActivityOrderPushProcess extends AbsPushProcess {

    public ActivityOrderPushProcess(Context context, Message message, boolean isForeground) {
        super(context, message, isForeground);
    }

    @Override
    public Intent getClickNotificationJumpActivityIntent() {
        return new Intent(mContext, ActiveOrderDetailActivity.class);
    }

    @Override
    public void onDialogEnsureButtonClick(Message message) {
        ActiveOrderDetailActivity.actionStart((Activity) mContext, message.getRecId());
    }

    @Override
    protected void addExtraDataToNotificationClickReceiverIntent(Intent intent) {
        intent.putExtra(Intents.EXTRA_REC_ID, mMessage.getRecId());
    }
}
